inherited frmMnfWorkProcBill: TfrmMnfWorkProcBill
  Left = 325
  Caption = #24037#24207#27969#31243#21345
  ClientHeight = 614
  ClientWidth = 854
  ExplicitWidth = 862
  ExplicitHeight = 660
  PixelsPerInch = 96
  TextHeight = 12
  inherited Panel1: TPanel
    Width = 854
    Height = 67
    Align = alTop
    Color = 16773345
    Visible = True
    ExplicitWidth = 854
    ExplicitHeight = 67
    inherited img3: TImage
      Left = 1044
      Top = 32
      Visible = False
      ExplicitLeft = 738
      ExplicitTop = 32
    end
    inherited labFuncName: TcxLabel
      Left = 544
      Top = 12
      Style.IsFontAssigned = True
      Visible = False
      ExplicitLeft = 544
      ExplicitTop = 12
    end
    inherited labFuncDesc: TcxLabel
      Left = 612
      Top = -2
      Style.IsFontAssigned = True
      Visible = False
      ExplicitLeft = 612
      ExplicitTop = -2
    end
    object btnFilter: TcxButton
      Left = 760
      Top = 36
      Width = 75
      Height = 25
      Anchors = [akTop, akRight]
      Caption = #36807#28388'(&F)'
      OptionsImage.Glyph.SourceDPI = 96
      OptionsImage.Glyph.Data = {
        424D360400000000000036000000280000001000000010000000010020000000
        000000000000C40E0000C40E00000000000000000000FF00FF00FF00FF00FF00
        FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00
        FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00
        FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00
        FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00840000FF840000FF8400
        00FF840000FF840000FFFF00FF00FF00FF00FF00FF00FF00FF00FF00FF008400
        00FF840000FF840000FF840000FF840000FFFF00FF00840000FF00FFFFFF8400
        00FF840000FF840000FFFF00FF00FF00FF00FF00FF00FF00FF00FF00FF008400
        00FF00FFFFFF840000FF840000FF840000FFFF00FF00840000FF00FFFFFF8400
        00FF840000FF840000FFFF00FF00FF00FF00FF00FF00FF00FF00FF00FF008400
        00FF00FFFFFF840000FF840000FF840000FFFF00FF00840000FF840000FF8400
        00FF840000FF840000FF840000FF840000FFFF00FF00840000FF840000FF8400
        00FF840000FF840000FF840000FF840000FFFF00FF00840000FF840000FF00FF
        FFFF840000FF840000FF840000FF840000FF840000FF840000FF00FFFFFF8400
        00FF840000FF840000FF840000FF840000FFFF00FF00840000FF840000FF00FF
        FFFF840000FF840000FF840000FFFF00FF00840000FF840000FF00FFFFFF8400
        00FF840000FF840000FF840000FF840000FFFF00FF00840000FF840000FF00FF
        FFFF840000FF840000FF840000FFFF00FF00840000FF840000FF00FFFFFF8400
        00FF840000FF840000FF840000FF840000FFFF00FF00FF00FF00840000FF8400
        00FF840000FF840000FF840000FF840000FF840000FF840000FF840000FF8400
        00FF840000FF840000FF840000FFFF00FF00FF00FF00FF00FF00FF00FF008400
        00FF00FFFFFF840000FF840000FF840000FFFF00FF00840000FF00FFFFFF8400
        00FF840000FF840000FFFF00FF00FF00FF00FF00FF00FF00FF00FF00FF008400
        00FF840000FF840000FF840000FF840000FFFF00FF00840000FF840000FF8400
        00FF840000FF840000FFFF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00
        FF00840000FF840000FF840000FFFF00FF00FF00FF00FF00FF00840000FF8400
        00FF840000FFFF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00
        FF00840000FF00FFFFFF840000FFFF00FF00FF00FF00FF00FF00840000FF00FF
        FFFF840000FFFF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00
        FF00840000FF840000FF840000FFFF00FF00FF00FF00FF00FF00840000FF8400
        00FF840000FFFF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00
        FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00
        FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00}
      TabOrder = 8
      OnClick = btnFilterClick
    end
    object lblTrader: TcxLabel
      Left = 226
      Top = 40
      Caption = #23458#25143
      Transparent = True
    end
    object lblProduct: TcxLabel
      Left = 226
      Top = 12
      Caption = #36135#21697
      Transparent = True
    end
    object lblWorkproc: TcxLabel
      Left = 381
      Top = 12
      Caption = #24037#24207
      Transparent = True
    end
    object edtTrader: TcxDBLookupComboBox
      Tag = 8
      Left = 251
      Top = 38
      DataBinding.DataField = 'traderid'
      DataBinding.DataSource = dsFilter
      Properties.ListColumns = <>
      TabOrder = 5
      Width = 120
    end
    object edtProduct: TcxDBLookupComboBox
      Tag = 10
      Left = 251
      Top = 10
      DataBinding.DataField = 'productid'
      DataBinding.DataSource = dsFilter
      Properties.ListColumns = <>
      TabOrder = 1
      Width = 120
    end
    object edtWorkproc: TcxDBLookupComboBox
      Tag = 72
      Left = 406
      Top = 10
      DataBinding.DataField = 'workprocid'
      DataBinding.DataSource = dsFilter
      Properties.ListColumns = <>
      TabOrder = 2
      Width = 120
    end
    object lblEmp: TcxLabel
      Left = 536
      Top = 12
      Caption = #24037#20154
      Transparent = True
    end
    object edtEmp: TcxDBLookupComboBox
      Tag = 4
      Left = 561
      Top = 10
      DataBinding.DataField = 'empid'
      DataBinding.DataSource = dsFilter
      Properties.ListColumns = <>
      TabOrder = 3
      Width = 120
    end
    object lblSOrderBcode: TcxLabel
      Left = 19
      Top = 40
      Caption = #38144#21806#35746#21333#32534#21495
      Transparent = True
    end
    object lblMnfBcode: TcxLabel
      Left = 7
      Top = 12
      Caption = #29983#20135#21152#24037#21333#32534#21495
      Transparent = True
    end
    object edtSOrderBcode: TcxTextEdit
      Left = 91
      Top = 38
      TabOrder = 4
      Width = 121
    end
    object edtMnfBcode: TcxTextEdit
      Left = 91
      Top = 10
      TabOrder = 0
      Width = 121
    end
    object edtCompleted: TcxComboBox
      Left = 694
      Top = 10
      Properties.ImmediatePost = True
      Properties.Items.Strings = (
        #26410#23436#24037
        #24050#23436#24037
        #20840#37096)
      TabOrder = 15
      Text = #26410#23436#24037
      Width = 60
    end
    object chkTreeView: TcxCheckBox
      Left = 632
      Top = 40
      Caption = #26641#29366#21152#24037#21333
      TabOrder = 16
      OnClick = chkTreeViewClick
    end
    object cxLabel1: TcxLabel
      Left = 381
      Top = 38
      Caption = #39033#30446
      Transparent = True
    end
    object edtProject: TcxDBLookupComboBox
      Tag = 66
      Left = 406
      Top = 36
      DataBinding.DataField = 'projectid'
      DataBinding.DataSource = dsFilter
      Properties.ListColumns = <>
      TabOrder = 18
      Width = 120
    end
  end
  inherited pnlMain: TPanel
    Top = 67
    Width = 854
    Height = 497
    Color = 16773345
    ExplicitTop = 67
    ExplicitWidth = 854
    ExplicitHeight = 497
    inherited MainDataGrid: TcxGrid
      Top = 60
      Width = 854
      Height = 137
      Align = alTop
      ExplicitTop = 60
      ExplicitWidth = 854
      ExplicitHeight = 137
      inherited MainDataGridDBTableView: TcxGridDBTableView
        OnDblClick = MainDataGridDBTableViewDblClick
        DataController.DataModeController.GridMode = False
        DataController.Summary.FooterSummaryItems = <
          item
            Kind = skSum
            Column = machquantity
          end
          item
            Kind = skSum
            Column = machcompletedqty
          end
          item
            Kind = skSum
            Column = machprocedqty
          end
          item
            Kind = skSum
            Column = machwasterqty
          end>
        OptionsBehavior.FocusCellOnTab = True
        OptionsBehavior.GoToNextCellOnEnter = True
        OptionsBehavior.FocusCellOnCycle = True
        OptionsData.CancelOnExit = False
        OptionsData.DeletingConfirmation = False
        OptionsData.Inserting = False
        OptionsView.ColumnAutoWidth = True
        object machpjname: TcxGridDBColumn
          Caption = #39033#30446
          DataBinding.FieldName = 'pjname'
          Width = 80
        end
        object machbdate: TcxGridDBColumn
          Caption = #21152#24037#21333#26085#26399
          DataBinding.FieldName = 'bdate'
          Width = 80
        end
        object machbcode: TcxGridDBColumn
          Caption = #21152#24037#21333#21333#21495
          DataBinding.FieldName = 'bcode'
          Width = 80
        end
        object machp_code: TcxGridDBColumn
          Caption = #36135#21697#32534#30721
          DataBinding.FieldName = 'p_code'
          Width = 80
        end
        object machp_name: TcxGridDBColumn
          Caption = #36135#21697#21517#31216
          DataBinding.FieldName = 'p_name'
          Width = 80
        end
        object machp_spec: TcxGridDBColumn
          Caption = #35268#26684
          DataBinding.FieldName = 'p_spec'
          Width = 80
        end
        object machquantity: TcxGridDBColumn
          Caption = #21152#24037#25968#37327
          DataBinding.FieldName = 'quantity'
          Width = 60
        end
        object machcompletedqty: TcxGridDBColumn
          Caption = #39564#25910#25968#37327
          DataBinding.FieldName = 'completedqty'
          Width = 60
        end
        object machprocedqty: TcxGridDBColumn
          Caption = #24037#24207#39564#25910#25968#37327
          DataBinding.FieldName = 'procedqty'
          Width = 75
        end
        object machwasterqty: TcxGridDBColumn
          Caption = #24223#21697#25968#37327
          DataBinding.FieldName = 'wasterqty'
          Width = 60
        end
        object machexplan: TcxGridDBColumn
          Caption = #35828#26126
          DataBinding.FieldName = 'explan'
          Width = 100
        end
      end
    end
    object splMach: TcxSplitter
      Left = 0
      Top = 197
      Width = 854
      Height = 8
      Cursor = crVSplit
      HotZoneClassName = 'TcxXPTaskBarStyle'
      AlignSplitter = salTop
      Control = MainDataGrid
    end
    object grdMach: TcxGrid
      Left = 0
      Top = 205
      Width = 854
      Height = 164
      Align = alClient
      TabOrder = 2
      RootLevelOptions.DetailTabsPosition = dtpTop
      OnActiveTabChanged = grdMachActiveTabChanged
      object viewMachProc: TcxGridDBTableView
        PopupMenu = pmMachProc
        Navigator.Buttons.CustomButtons = <>
        OnCustomDrawCell = viewMachProcCustomDrawCell
        DataController.DataSource = dsMachProc
        DataController.Summary.DefaultGroupSummaryItems = <>
        DataController.Summary.FooterSummaryItems = <>
        DataController.Summary.SummaryGroups = <>
        OptionsBehavior.FocusCellOnTab = True
        OptionsBehavior.GoToNextCellOnEnter = True
        OptionsBehavior.FocusCellOnCycle = True
        OptionsData.CancelOnExit = False
        OptionsData.Deleting = False
        OptionsData.DeletingConfirmation = False
        OptionsData.Inserting = False
        OptionsView.ColumnAutoWidth = True
        OptionsView.GroupByBox = False
        Styles.Background = MainDM.bslBackGroup
        Styles.ContentEven = MainDM.bsEven
        Styles.ContentOdd = MainDM.bsOdd
        Styles.Header = MainDM.bsTitle
        Styles.Selection = MainDM.bsSelect
        object viewMachProcprocorderno: TcxGridDBColumn
          Caption = #24207#21495
          DataBinding.FieldName = 'procorderno'
          OnGetProperties = viewMachProcprocordernoGetProperties
          Width = 30
        end
        object viewMachProcworkprocname: TcxGridDBColumn
          Caption = #24037#24207#21517#31216
          DataBinding.FieldName = 'workprocid'
          Options.Editing = False
          Width = 75
        end
        object viewMachProcempname: TcxGridDBColumn
          Caption = #24037#20154
          DataBinding.FieldName = 'empid'
        end
        object viewMachProccompletedqty: TcxGridDBColumn
          Caption = #23436#24037#25968#37327
          DataBinding.FieldName = 'completedqty'
          Options.Editing = False
          Width = 60
        end
        object viewMachProcwasterqty: TcxGridDBColumn
          Caption = #24223#21697#25968#37327
          DataBinding.FieldName = 'wasterqty'
          Options.Editing = False
          Width = 60
        end
        object viewMachProcworkdate: TcxGridDBColumn
          Caption = #24320#24037#26085#26399
          DataBinding.FieldName = 'workdate'
          Options.Editing = False
          Width = 80
        end
        object viewMachProcbeginproc: TcxGridDBColumn
          Caption = #39318#24037#24207
          DataBinding.FieldName = 'beginproc'
          Options.Editing = False
          Width = 40
        end
        object viewMachProcendproc: TcxGridDBColumn
          Caption = #26411#24037#24207
          DataBinding.FieldName = 'endproc'
          Options.Editing = False
          Width = 40
        end
        object viewMachProcprice: TcxGridDBColumn
          Caption = #35745#20214#21333#20215
          DataBinding.FieldName = 'price'
          Options.Editing = False
          Width = 60
        end
        object viewMachProcworkertypename: TcxGridDBColumn
          Caption = #24037#31181
          DataBinding.FieldName = 'workertypename'
          Options.Editing = False
          Width = 60
        end
        object viewMachProcexplan: TcxGridDBColumn
          Caption = #35828#26126
          DataBinding.FieldName = 'explan'
          Options.Editing = False
          Width = 200
        end
      end
      object viewRaw: TcxGridDBTableView
        Navigator.Buttons.CustomButtons = <>
        DataController.DataSource = dsMachRaw
        DataController.Summary.DefaultGroupSummaryItems = <>
        DataController.Summary.FooterSummaryItems = <>
        DataController.Summary.SummaryGroups = <>
        OptionsData.CancelOnExit = False
        OptionsData.Deleting = False
        OptionsData.DeletingConfirmation = False
        OptionsData.Editing = False
        OptionsData.Inserting = False
        OptionsView.ColumnAutoWidth = True
        OptionsView.Footer = True
        OptionsView.FooterMultiSummaries = True
        OptionsView.GroupByBox = False
        Styles.Background = MainDM.bslBackGroup
        Styles.ContentEven = MainDM.bsEven
        Styles.ContentOdd = MainDM.bsOdd
        Styles.Footer = MainDM.bsTitle
        Styles.Header = MainDM.bsTitle
        Styles.Selection = MainDM.bsSelect
        object colRawProductID: TcxGridDBColumn
          Caption = #26448#26009#21517#31216
          DataBinding.FieldName = 'P_Name'
        end
        object colRawUnitID: TcxGridDBColumn
          Caption = #21333#20301
          DataBinding.FieldName = 'UnitName'
          Width = 40
        end
        object colRawRawqty: TcxGridDBColumn
          Caption = #25968#37327
          DataBinding.FieldName = 'rawqty'
        end
        object colRawDrawqty: TcxGridDBColumn
          Caption = #39046#29992#25968#37327
          DataBinding.FieldName = 'Drawdqty'
        end
        object colRawwasterqty: TcxGridDBColumn
          Caption = #25253#24223#25968#37327
          DataBinding.FieldName = 'wasterqty'
        end
        object colRawExplan: TcxGridDBColumn
          Caption = #35828#26126
          DataBinding.FieldName = 'Explan'
        end
      end
      object viewProc: TcxGridDBTableView
        Navigator.Buttons.CustomButtons = <>
        DataController.DataSource = dsProc
        DataController.Summary.DefaultGroupSummaryItems = <>
        DataController.Summary.FooterSummaryItems = <>
        DataController.Summary.SummaryGroups = <>
        OptionsData.CancelOnExit = False
        OptionsData.Deleting = False
        OptionsData.DeletingConfirmation = False
        OptionsData.Editing = False
        OptionsData.Inserting = False
        OptionsView.ColumnAutoWidth = True
        OptionsView.GroupByBox = False
        Styles.Background = MainDM.bslBackGroup
        Styles.ContentEven = MainDM.bsEven
        Styles.ContentOdd = MainDM.bsOdd
        Styles.Header = MainDM.bsTitle
        Styles.Selection = MainDM.bsSelect
        object colWorkProcID: TcxGridDBColumn
          Caption = #24037#24207
          DataBinding.FieldName = 'workprocname'
          Width = 60
        end
        object colEmpID: TcxGridDBColumn
          Caption = #24037#20154
          DataBinding.FieldName = 'empname'
          Width = 60
        end
        object colWorkShopID: TcxGridDBColumn
          Caption = #36710#38388
          DataBinding.FieldName = 'workshopname'
          Width = 60
        end
        object colWorkCenterID: TcxGridDBColumn
          Caption = #24037#20316#20013#24515
          DataBinding.FieldName = 'workcentername'
          Width = 60
        end
        object colWorkdate: TcxGridDBColumn
          Caption = #24320#24037#26085#26399
          DataBinding.FieldName = 'workdate'
          Width = 80
        end
        object colCompleteddate: TcxGridDBColumn
          Caption = #23436#24037#26085#26399
          DataBinding.FieldName = 'completeddate'
          Width = 80
        end
        object colCompletedqty: TcxGridDBColumn
          Caption = #23436#24037#25968#37327
          DataBinding.FieldName = 'completedqty'
          Width = 60
        end
        object colWasterqty: TcxGridDBColumn
          Caption = #24223#21697#25968#37327
          DataBinding.FieldName = 'wasterqty'
          Width = 60
        end
        object colPrice: TcxGridDBColumn
          Caption = #35745#20214#21333#20215
          DataBinding.FieldName = 'price'
          Width = 60
        end
        object colAmount: TcxGridDBColumn
          Caption = #35745#20214#24037#36164
          DataBinding.FieldName = 'amount'
          Width = 60
        end
        object colExplan: TcxGridDBColumn
          Caption = #35828#26126
          DataBinding.FieldName = 'explan'
          Width = 60
        end
      end
      object lvlMachProc: TcxGridLevel
        Caption = ' '#24037'  '#24207' '
        GridView = viewMachProc
      end
      object lvlRaw: TcxGridLevel
        Caption = #26448#26009#26126#32454
        GridView = viewRaw
      end
      object lvlProc: TcxGridLevel
        Caption = #24037#24207#20132#25509#26126#32454
        GridView = viewProc
      end
    end
    object sptProc: TcxSplitter
      Left = 0
      Top = 369
      Width = 854
      Height = 8
      Cursor = crVSplit
      HotZoneClassName = 'TcxXPTaskBarStyle'
      AlignSplitter = salBottom
      Control = grdProcDtl
    end
    object grdProcDtl: TcxGrid
      Left = 0
      Top = 377
      Width = 854
      Height = 120
      Align = alBottom
      TabOrder = 4
      object viewProcDtl: TcxGridDBTableView
        PopupMenu = pmProcDtl
        Navigator.Buttons.CustomButtons = <>
        OnCustomDrawCell = viewMachProcCustomDrawCell
        DataController.DataSource = dsProc
        DataController.Summary.DefaultGroupSummaryItems = <>
        DataController.Summary.FooterSummaryItems = <>
        DataController.Summary.SummaryGroups = <>
        OptionsBehavior.FocusCellOnTab = True
        OptionsBehavior.GoToNextCellOnEnter = True
        OptionsBehavior.FocusCellOnCycle = True
        OptionsData.Inserting = False
        OptionsView.ColumnAutoWidth = True
        OptionsView.Footer = True
        OptionsView.FooterMultiSummaries = True
        OptionsView.GroupByBox = False
        Styles.Background = MainDM.bslBackGroup
        Styles.ContentEven = MainDM.bsEven
        Styles.ContentOdd = MainDM.bsOdd
        Styles.Footer = MainDM.bsTitle
        Styles.Header = MainDM.bsTitle
        Styles.Selection = MainDM.bsSelect
      end
      object lvlProcDtl: TcxGridLevel
        GridView = viewProcDtl
      end
    end
    object treMachining: TcxDBTreeList
      Left = 0
      Top = 0
      Width = 854
      Height = 60
      Align = alTop
      Bands = <
        item
          Caption.AlignHorz = taCenter
          Caption.Text = #21152#24037#36135#21697
        end
        item
          Caption.AlignHorz = taCenter
          Caption.Text = #21152#24037#35814#32454#20449#24687
        end>
      DataController.DataSource = MainDataSource
      DataController.ParentField = 'pbomid'
      DataController.KeyField = 'bbomid'
      Navigator.Buttons.CustomButtons = <>
      OptionsData.Editing = False
      OptionsData.Deleting = False
      OptionsView.ColumnAutoWidth = True
      OptionsView.Footer = True
      RootValue = -1
      Styles.Background = MainDM.bslBackGroup
      Styles.Selection = MainDM.bsSelect
      Styles.ColumnFooter = MainDM.bsTitle
      Styles.ColumnHeader = MainDM.bsTitle
      Styles.ContentEven = MainDM.bsEven
      Styles.ContentOdd = MainDM.bsOdd
      Styles.Footer = MainDM.bsTitle
      TabOrder = 5
      Visible = False
      object trcPjname: TcxDBTreeListColumn
        Caption.Text = #39033#30446
        DataBinding.FieldName = 'pjname'
        Width = 80
        Position.ColIndex = 0
        Position.RowIndex = 0
        Position.BandIndex = 1
        Summary.FooterSummaryItems = <>
        Summary.GroupFooterSummaryItems = <>
      end
      object trcbdate: TcxDBTreeListColumn
        Caption.Text = #21152#24037#21333#26085#26399
        DataBinding.FieldName = 'bdate'
        Width = 100
        Position.ColIndex = 2
        Position.RowIndex = 0
        Position.BandIndex = 1
        Summary.FooterSummaryItems = <>
        Summary.GroupFooterSummaryItems = <>
      end
      object trcbcode: TcxDBTreeListColumn
        Caption.Text = #21152#24037#21333#21333#21495
        DataBinding.FieldName = 'bcode'
        Width = 100
        Position.ColIndex = 1
        Position.RowIndex = 0
        Position.BandIndex = 1
        Summary.FooterSummaryItems = <>
        Summary.GroupFooterSummaryItems = <>
      end
      object trcCode: TcxDBTreeListColumn
        Caption.Text = #36135#21697#32534#30721
        DataBinding.FieldName = 'p_code'
        Width = 100
        Position.ColIndex = 0
        Position.RowIndex = 0
        Position.BandIndex = 0
        Summary.FooterSummaryItems = <>
        Summary.GroupFooterSummaryItems = <>
      end
      object trcName: TcxDBTreeListColumn
        Caption.Text = #36135#21697#21517#31216
        DataBinding.FieldName = 'p_name'
        Width = 100
        Position.ColIndex = 1
        Position.RowIndex = 0
        Position.BandIndex = 0
        Summary.FooterSummaryItems = <>
        Summary.GroupFooterSummaryItems = <>
      end
      object trcSpec: TcxDBTreeListColumn
        Caption.Text = #35268#26684
        DataBinding.FieldName = 'p_spec'
        Width = 100
        Position.ColIndex = 2
        Position.RowIndex = 0
        Position.BandIndex = 0
        Summary.FooterSummaryItems = <>
        Summary.GroupFooterSummaryItems = <>
      end
      object trcQuantity: TcxDBTreeListColumn
        Caption.Text = #21152#24037#25968#37327
        DataBinding.FieldName = 'quantity'
        Width = 100
        Position.ColIndex = 6
        Position.RowIndex = 0
        Position.BandIndex = 1
        Summary.FooterSummaryItems = <
          item
            AlignHorz = taLeftJustify
            Kind = skSum
          end>
        Summary.GroupFooterSummaryItems = <>
      end
      object trcCompletedqty: TcxDBTreeListColumn
        Caption.Text = #39564#25910#25968#37327
        DataBinding.FieldName = 'completedqty'
        Width = 100
        Position.ColIndex = 3
        Position.RowIndex = 0
        Position.BandIndex = 1
        Summary.FooterSummaryItems = <
          item
            AlignHorz = taLeftJustify
            Kind = skSum
          end>
        Summary.GroupFooterSummaryItems = <>
      end
      object trcprocqty: TcxDBTreeListColumn
        Caption.Text = #24037#24207#39564#25910#25968#37327
        DataBinding.FieldName = 'procedqty'
        Width = 100
        Position.ColIndex = 5
        Position.RowIndex = 0
        Position.BandIndex = 1
        Summary.FooterSummaryItems = <
          item
            AlignHorz = taLeftJustify
            Kind = skSum
          end>
        Summary.GroupFooterSummaryItems = <>
      end
      object trcwasterqty: TcxDBTreeListColumn
        Caption.Text = #24223#21697#25968#37327
        DataBinding.FieldName = 'wasterqty'
        Width = 100
        Position.ColIndex = 7
        Position.RowIndex = 0
        Position.BandIndex = 1
        Summary.FooterSummaryItems = <
          item
            AlignHorz = taLeftJustify
            Kind = skSum
          end>
        Summary.GroupFooterSummaryItems = <>
      end
      object trcexplan: TcxDBTreeListColumn
        Caption.Text = #35828#26126
        DataBinding.FieldName = 'explan'
        Width = 100
        Position.ColIndex = 4
        Position.RowIndex = 0
        Position.BandIndex = 1
        Summary.FooterSummaryItems = <>
        Summary.GroupFooterSummaryItems = <>
      end
    end
  end
  object pnlBottom: TPanel [4]
    Left = 0
    Top = 564
    Width = 854
    Height = 50
    Align = alBottom
    BevelOuter = bvNone
    Color = 16773345
    TabOrder = 2
    DesignSize = (
      854
      50)
    object btnCancle: TcxButton
      Left = 770
      Top = 9
      Width = 75
      Height = 25
      Anchors = [akRight, akBottom]
      Cancel = True
      Caption = #21462#28040
      Colors.Default = 16773345
      ModalResult = 2
      OptionsImage.Glyph.SourceDPI = 96
      OptionsImage.Glyph.Data = {
        424D360400000000000036000000280000001000000010000000010020000000
        000000000000C40E0000C40E00000000000000000000C8C8C800C8C8C800C8C8
        C800C8C8C800C8C8C800C8C8C800C8C8C800C8C8C800C8C8C800C8C8C800C8C8
        C800C8C8C800C8C8C800C8C8C800C8C8C800C8C8C800C8C8C800C8C8C800C8C8
        C800C8C8C800C8C8C800C8C8C80031332DFF30322BFF30322BFF32332EFFC8C8
        C800C8C8C800C8C8C800C8C8C800C8C8C800C8C8C800C8C8C800C8C8C800C8C8
        C800000000FF120E26FF291F4EFF423086FF543BACFF5139A5FF3A2A74FF2017
        41FF090716FF000000FFC8C8C800C8C8C800C8C8C800C8C8C800C8C8C8000B09
        16FF514595FF533BB4FF6039E2FF7844FFFF874BFFFF8549FFFF7342FEFF5A37
        D4FF5542ACFF584F88FF000000FFC8C8C800C8C8C800C8C8C8000E0C19FF6654
        CBFF4C2CDDFF663AFCFF6A44C9FF4E367AFF352651FF3B2B59FF503582FF6A42
        D8FF572DEEFF5337D7FF594EA0FF000000FFC8C8C800C8C8C8005849B8FF381F
        CFFF5132D7FF1A1430FFC8C8C800C8C8C800C8C8C800C8C8C8001A152DFF4E38
        9FFF532EE9FF3F20DEFF3E27CBFF312A67FFC8C8C8001C1832FF3A25C4FF3C22
        CAFF0A0810FFC8C8C800C8C8C800C8C8C800C8C8C800392D68FF5D3FCCFF522A
        ECFF4E30D4FF30236AFF331ACAFF422FBDFF010100FF211A50FF2C18C1FF2016
        5FFFC8C8C800C8C8C800C8C8C800040304FF46398DFF5237D5FF4222DFFF462D
        B8FF050407FFC8C8C80032219BFF2F1CBDFF0E0C1EFF180F4EFF2B17BBFF120D
        2DFFC8C8C800C8C8C8000B0914FF3F3292FF3822C4FF3219CCFF332288FFC8C8
        C800C8C8C800C8C8C800221763FF2C18BCFF09061DFF18114AFF2715AFFF3027
        69FFC8C8C80019152CFF453B93FF574AC7FF6758D6FF322B5BFFC8C8C800C8C8
        C800C8C8C800C8C8C800403399FF2916B0FF080618FF0B091EFF2614AAFF4033
        AFFF393265FF584DB0FF6D62D6FF8075DEFF231E36FFC8C8C800C8C8C800C8C8
        C800C8C8C8003B3755FF3121AAFF2A1AA4FFC8C8C800C8C8C800261A7EFF2D1E
        A6FF5E54C3FF756CD7FF7E77C3FF0B0A0CFFC8C8C800C8C8C800C8C8C8000000
        00FF262344FF6A61C5FF2514A5FF1A1350FFC8C8C800C8C8C800010000FF2E20
        98FF6D64CFFF8A82D8FF28245EFF1B1749FF1B1743FF1A1643FF1D194EFF3934
        78FF7871C6FF655BCFFF1F1473FFC8C8C800C8C8C800C8C8C800C8C8C800C8C8
        C8002D2578FF9088E6FFC8C4FAFFBCBBE6FFB9B6E0FFB8B5E0FFC0BDE9FFC3C0
        FCFF7B72D9FF1B1358FFC8C8C800C8C8C800C8C8C800C8C8C800C8C8C800C8C8
        C800C8C8C80058576CFF8F88C8FFA8A3E8FFBBB7EEFFB7B3EDFFA8A1E8FF7C77
        B1FF56555CFFC8C8C800C8C8C800C8C8C800C8C8C800C8C8C800C8C8C800C8C8
        C800C8C8C800C8C8C800C8C8C800C8C8C800C8C8C800C8C8C800C8C8C800C8C8
        C800C8C8C800C8C8C800C8C8C800C8C8C800C8C8C800}
      TabOrder = 1
      OnClick = btnCancleClick
    end
    object btnOk: TcxButton
      Left = 920
      Top = 9
      Width = 75
      Height = 25
      Anchors = [akRight, akBottom]
      Caption = #30830#23450
      Colors.Default = 16773345
      ModalResult = 1
      OptionsImage.Glyph.SourceDPI = 96
      OptionsImage.Glyph.Data = {
        424D360400000000000036000000280000001000000010000000010020000000
        000000000000C40E0000C40E00000000000000000000FF00FF00FF00FF00FF00
        FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00
        FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00
        FF00FF00FF00FF00FF00FF00FF00808080FF808080FFFF00FF00FF00FF00FF00
        FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00
        FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00808080FFFF00FF00FF00
        FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00
        FF00FF00FF00FF00FF00008000FF008000FF008000FFFF00FF00808080FFFF00
        FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00
        FF00FF00FF00008000FF008000FF008000FF008000FF008000FFFF00FF008080
        80FFFF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00
        FF00008000FF008000FF008000FF008000FF008000FF008000FFFF00FF008080
        80FFFF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF000080
        00FF008000FF008000FF008000FFFF00FF00008000FF008000FF008000FFFF00
        FF00808080FFFF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00
        FF00008000FF008000FFFF00FF00FF00FF00FF00FF00008000FF008000FFFF00
        FF00808080FFFF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00
        FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00008000FF008000FF0080
        00FFFF00FF00808080FFFF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00
        FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00008000FF0080
        00FFFF00FF00808080FFFF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00
        FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF000080
        00FF008000FFFF00FF00808080FFFF00FF00FF00FF00FF00FF00FF00FF00FF00
        FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF000080
        00FF008000FFFF00FF00808080FFFF00FF00FF00FF00FF00FF00FF00FF00FF00
        FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00
        FF00008000FF008000FFFF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00
        FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00
        FF00FF00FF00008000FFFF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00
        FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00
        FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00
        FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00
        FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00}
      TabOrder = 0
      OnClick = btnOkClick
    end
    object btnProcChkAcpt: TcxButton
      Left = 158
      Top = 9
      Width = 75
      Height = 25
      Anchors = [akLeft, akBottom]
      Caption = #24037#24207#39564#25910
      Colors.Default = 16773345
      TabOrder = 2
      OnClick = btnProcChkAcptClick
    end
    object chkListRaw: TcxCheckBox
      Left = 360
      Top = 11
      Caption = #26174#31034#26448#26009#26126#32454
      TabOrder = 3
      Transparent = True
      OnClick = chkListRawClick
    end
    object btnSave: TcxButton
      Left = 680
      Top = 9
      Width = 75
      Height = 25
      Anchors = [akRight, akBottom]
      Caption = #20445#23384
      Colors.Default = 16773345
      OptionsImage.Glyph.SourceDPI = 96
      OptionsImage.Glyph.Data = {
        424D360400000000000036000000280000001000000010000000010020000000
        000000000000C40E0000C40E00000000000000000000FF00FF00FF00FF00FF00
        FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00
        FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00
        FF00FF00FF00FF00FF00FF00FF00808080FF808080FFFF00FF00FF00FF00FF00
        FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00
        FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00808080FFFF00FF00FF00
        FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00
        FF00FF00FF00FF00FF00008000FF008000FF008000FFFF00FF00808080FFFF00
        FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00
        FF00FF00FF00008000FF008000FF008000FF008000FF008000FFFF00FF008080
        80FFFF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00
        FF00008000FF008000FF008000FF008000FF008000FF008000FFFF00FF008080
        80FFFF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF000080
        00FF008000FF008000FF008000FFFF00FF00008000FF008000FF008000FFFF00
        FF00808080FFFF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00
        FF00008000FF008000FFFF00FF00FF00FF00FF00FF00008000FF008000FFFF00
        FF00808080FFFF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00
        FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00008000FF008000FF0080
        00FFFF00FF00808080FFFF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00
        FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00008000FF0080
        00FFFF00FF00808080FFFF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00
        FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF000080
        00FF008000FFFF00FF00808080FFFF00FF00FF00FF00FF00FF00FF00FF00FF00
        FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF000080
        00FF008000FFFF00FF00808080FFFF00FF00FF00FF00FF00FF00FF00FF00FF00
        FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00
        FF00008000FF008000FFFF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00
        FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00
        FF00FF00FF00008000FFFF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00
        FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00
        FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00
        FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00
        FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00}
      TabOrder = 4
      OnClick = btnSaveClick
    end
    object btnProcBegin: TcxButton
      Left = 20
      Top = 9
      Width = 75
      Height = 25
      Anchors = [akLeft, akBottom]
      Caption = #24037#24207#24320#24037
      Colors.Default = 16773345
      TabOrder = 5
      OnClick = btnProcBeginClick
    end
  end
  inherited MainDataSource: TDataSource
    Left = 197
    Top = 147
  end
  inherited ImageList1: TImageList
    Left = 19
    Top = 211
  end
  inherited MainMenu1: TMainMenu
    Top = 92
  end
  inherited ActionList1: TActionList
    Top = 211
  end
  inherited PopupMenu1: TPopupMenu
    inherited PopmnuNewRecord: TMenuItem
      Visible = False
    end
    inherited PopmnuModifyRecord: TMenuItem
      Visible = False
    end
    inherited PopmnuDeleteRecord: TMenuItem
      Visible = False
    end
  end
  inherited MainDataSetU: TUniQuery
    AfterScroll = MainDataSetUAfterScroll
    Left = 152
    Top = 96
  end
  inherited mGrdPop: TcxGridPopupMenu
    Left = 736
    Top = 79
  end
  object dsFilter: TDataSource
    DataSet = cdsFilter
    Left = 272
    Top = 93
  end
  object cdsFilter: TClientDataSet
    Aggregates = <>
    Params = <>
    Left = 224
    Top = 85
    object cdsFiltertraderid: TIntegerField
      FieldName = 'traderid'
    end
    object cdsFilterproductid: TIntegerField
      FieldName = 'productid'
    end
    object cdsFilterworkprocid: TIntegerField
      FieldName = 'workprocid'
    end
    object cdsFilterempid: TIntegerField
      FieldName = 'empid'
    end
    object cdsFilterprojectid: TIntegerField
      FieldName = 'projectid'
    end
  end
  object pmMachProc: TPopupMenu
    Left = 488
    Top = 301
    object muProcChkApt: TMenuItem
      Caption = #24037#24207#39564#25910
      OnClick = btnProcChkAcptClick
    end
    object muProcPark: TMenuItem
      Caption = '-'
    end
    object muSaveProcNo: TMenuItem
      Caption = #20445#23384#24037#24207#24207#21495
      OnClick = muSaveProcNoClick
    end
  end
  object dsMachProc: TDataSource
    DataSet = qryMachProc
    Left = 810
    Top = 277
  end
  object dsMachRaw: TDataSource
    DataSet = qryMachRaw
    Left = 616
    Top = 357
  end
  object qryMachProc: TUniQuery
    SQLInsert.Strings = (
      'INSERT INTO tb_mnfmachproc'
      
        '  (bid, bno, bdtlno, productid, workprocid, procorderno, beginpr' +
        'oc, endproc, bprice, bquantity, amount, unitid, quantity, price,' +
        ' unit1qty, unit2qty, unit3qty, assqty, empid, workshopid, workce' +
        'nterid, plandate, workdate, manhour, pertime, completeddate, com' +
        'pletedqty, wasterqty, pause, relationassqty, relationcount, rela' +
        'tionqty, custom1, custom2, custom3, custom4, custom5, custom6, c' +
        'ustom7, custom8, custom9, custom10, custom11, custom12, custom13' +
        ', custom14, custom15, create_time, explan, unit)'
      'VALUES'
      
        '  (:bid, :bno, :bdtlno, :productid, :workprocid, :procorderno, :' +
        'beginproc, :endproc, :bprice, :bquantity, :amount, :unitid, :qua' +
        'ntity, :price, :unit1qty, :unit2qty, :unit3qty, :assqty, :empid,' +
        ' :workshopid, :workcenterid, :plandate, :workdate, :manhour, :pe' +
        'rtime, :completeddate, :completedqty, :wasterqty, :pause, :relat' +
        'ionassqty, :relationcount, :relationqty, :custom1, :custom2, :cu' +
        'stom3, :custom4, :custom5, :custom6, :custom7, :custom8, :custom' +
        '9, :custom10, :custom11, :custom12, :custom13, :custom14, :custo' +
        'm15, :create_time, :explan, :unit)')
    SQLDelete.Strings = (
      'DELETE FROM tb_mnfmachproc'
      'WHERE'
      '  bid = :Old_bid AND bno = :Old_bno AND bdtlno = :Old_bdtlno')
    SQLUpdate.Strings = (
      'UPDATE tb_mnfmachproc'
      'SET'
      
        '  bid = :bid, bno = :bno, bdtlno = :bdtlno, productid = :product' +
        'id, workprocid = :workprocid'
      
        ', procorderno = :procorderno, beginproc = :beginproc, endproc = ' +
        ':endproc, bprice = :bprice'
      
        ', bquantity = :bquantity, amount = :amount, unitid = :unitid, qu' +
        'antity = :quantity, price = :price'
      
        ', unit1qty = :unit1qty, unit2qty = :unit2qty, unit3qty = :unit3q' +
        'ty, assqty = :assqty, empid = :empid'
      
        ', workshopid = :workshopid, workcenterid = :workcenterid, planda' +
        'te = :plandate, workdate = :workdate'
      
        ', manhour = :manhour, pertime = :pertime, completeddate = :compl' +
        'eteddate, pause = :pause'
      
        ', relationassqty = :relationassqty, relationcount = :relationcou' +
        'nt, relationqty = :relationqty'
      
        ', custom1 = :custom1, custom2 = :custom2, custom3 = :custom3, cu' +
        'stom4 = :custom4, custom5 = :custom5'
      
        ', custom6 = :custom6, custom7 = :custom7, custom8 = :custom8, cu' +
        'stom9 = :custom9, custom10 = :custom10'
      
        ', custom11 = :custom11, custom12 = :custom12, custom13 = :custom' +
        '13, custom14 = :custom14, custom15 = :custom15'
      ', create_time = :create_time, explan = :explan, unit = :unit'
      'WHERE'
      '  bid = :Old_bid AND bno = :Old_bno AND bdtlno = :Old_bdtlno')
    SQLLock.Strings = (
      'SELECT * FROM tb_mnfmachproc'
      'WITH (UPDLOCK, ROWLOCK, HOLDLOCK)'
      'WHERE'
      '  bid = :Old_bid AND bno = :Old_bno AND bdtlno = :Old_bdtlno')
    SQLRefresh.Strings = (
      
        'SELECT bid, bno, bdtlno, productid, workprocid, procorderno, beg' +
        'inproc, endproc, bprice, bquantity, amount, unitid, quantity, pr' +
        'ice, unit1qty, unit2qty, unit3qty, assqty, empid, workshopid, wo' +
        'rkcenterid, plandate, workdate, manhour, pertime, completeddate,' +
        ' completedqty, wasterqty, pause, relationassqty, relationcount, ' +
        'relationqty, custom1, custom2, custom3, custom4, custom5, custom' +
        '6, custom7, custom8, custom9, custom10, custom11, custom12, cust' +
        'om13, custom14, custom15, create_time, explan FROM tb_mnfmachpro' +
        'c'
      'WHERE'
      '  bid = :Old_bid AND bno = :Old_bno AND bdtlno = :Old_bdtlno')
    Connection = MainDM.UniConn
    SQL.Strings = (
      
        'select mp.*,p.name workprocname,t.name workertypename,e.em_name ' +
        'empname '
      
        '  from tb_mnfmachproc mp,td_workproc p, td_workertype t,td_empma' +
        'ster e '
      
        '  where mp.workprocid=p.workprocid and p.workertypeid=t.workerty' +
        'peid and mp.empid=e.em_employeeid'
      '  order by mp.bid,mp.bno,mp.bdtlno,mp.procorderno')
    CachedUpdates = True
    Options.PrepareUpdateSQL = True
    Options.SetFieldsReadOnly = False
    Options.RequiredFields = False
    Options.QueryRecCount = True
    Options.AutoPrepare = True
    AfterScroll = qryMachProcAfterScroll
    Left = 752
    Top = 293
  end
  object qryMachRaw: TUniQuery
    Connection = MainDM.UniConn
    CachedUpdates = True
    Options.PrepareUpdateSQL = True
    Options.SetFieldsReadOnly = False
    Options.RequiredFields = False
    Options.QueryRecCount = True
    Options.AutoPrepare = True
    Left = 568
    Top = 325
  end
  object dsProc: TDataSource
    DataSet = qryProc
    Left = 818
    Top = 461
  end
  object qryProc: TUniQuery
    SQLInsert.Strings = (
      'INSERT INTO tb_mnfproc'
      
        '  (bid, bno, bdtlno, productid, workprocid, procdtlno, bprice, b' +
        'quantity, amount, unitid, quantity, price, unit1qty, unit2qty, u' +
        'nit3qty, assqty, empid, workshopid, workcenterid, workdate, manh' +
        'our, completeddate, completedqty, wasterqty, pause, relationassq' +
        'ty, relationcount, relationqty, custom1, custom2, custom3, custo' +
        'm4, custom5, custom6, custom7, custom8, custom9, custom10, custo' +
        'm11, custom12, custom13, custom14, custom15'
      ', create_time, explan, unit, makeprice, makeqty)'
      'VALUES'
      
        '  (:bid, :bno, :bdtlno, :productid, :workprocid, :procdtlno, :bp' +
        'rice, :bquantity, :amount, :unitid, :quantity, :price, :unit1qty' +
        ', :unit2qty, :unit3qty, :assqty, :empid, :workshopid, :workcente' +
        'rid, :workdate, :manhour, :completeddate, :completedqty, :waster' +
        'qty, :pause, :relationassqty, :relationcount, :relationqty, :cus' +
        'tom1, :custom2, :custom3, :custom4, :custom5, :custom6, :custom7' +
        ', :custom8, :custom9, :custom10, :custom11, :custom12, :custom13' +
        ', :custom14, :custom15'
      ', :create_time, :explan, :unit, :makeprice, :makeqty)')
    SQLDelete.Strings = (
      'DELETE FROM tb_mnfproc'
      'WHERE'
      
        '  bid = :Old_bid AND bno = :Old_bno AND bdtlno = :Old_bdtlno AND' +
        ' procdtlno = :Old_procdtlno')
    SQLUpdate.Strings = (
      'UPDATE tb_mnfproc'
      'SET'
      
        '  bid = :bid, bno = :bno, bdtlno = :bdtlno, productid = :product' +
        'id, workprocid = :workprocid, procdtlno = :procdtlno, bprice = :' +
        'bprice, bquantity = :bquantity, amount = :amount, unitid = :unit' +
        'id, quantity = :quantity, price = :price, unit1qty = :unit1qty, ' +
        'unit2qty = :unit2qty, unit3qty = :unit3qty, assqty = :assqty, em' +
        'pid = :empid, workshopid = :workshopid, workcenterid = :workcent' +
        'erid, workdate = :workdate, manhour = :manhour, completeddate = ' +
        ':completeddate, completedqty = :completedqty, wasterqty = :waste' +
        'rqty, pause = :pause, relationassqty = :relationassqty, relation' +
        'count = :relationcount, relationqty = :relationqty, custom1 = :c' +
        'ustom1, custom2 = :custom2, custom3 = :custom3, custom4 = :custo' +
        'm4, custom5 = :custom5, custom6 = :custom6, custom7 = :custom7, ' +
        'custom8 = :custom8, custom9 = :custom9, custom10 = :custom10, cu' +
        'stom11 = :custom11, custom12 = :custom12, custom13 = :custom13, ' +
        'custom14 = :custom14, custom15 = :custom15'
      
        ', create_time = :create_time, explan = :explan, unit = :unit, ma' +
        'keprice = :makeprice, makeqty = :makeqty'
      'WHERE'
      
        '  bid = :Old_bid AND bno = :Old_bno AND bdtlno = :Old_bdtlno AND' +
        ' procdtlno = :Old_procdtlno')
    SQLLock.Strings = (
      'SELECT * FROM tb_mnfproc'
      'WITH (UPDLOCK, ROWLOCK, HOLDLOCK)'
      'WHERE'
      
        '  bid = :Old_bid AND bno = :Old_bno AND bdtlno = :Old_bdtlno AND' +
        ' procdtlno = :Old_procdtlno')
    SQLRefresh.Strings = (
      'SELECT * FROM tb_mnfproc'
      'WHERE'
      
        '  bid = :Old_bid AND bno = :Old_bno AND bdtlno = :Old_bdtlno AND' +
        ' procdtlno = :Old_procdtlno')
    Connection = MainDM.UniConn
    SQL.Strings = (
      'select * from tb_mnfproc')
    CachedUpdates = True
    Options.PrepareUpdateSQL = True
    Options.SetFieldsReadOnly = False
    Options.RequiredFields = False
    Options.QueryRecCount = True
    Options.AutoPrepare = True
    OnNewRecord = qryProcNewRecord
    Left = 776
    Top = 453
  end
  object pmProcDtl: TPopupMenu
    Left = 480
    Top = 357
    object muDelProcDtl: TMenuItem
      Caption = #21024#38500#24037#24207#39564#25910
      OnClick = muDelProcDtlClick
    end
  end
  object qryDynMst: TUniQuery
    Connection = MainDM.UniConn
    SQL.Strings = (
      
        'select * from ts_DynamicEditFormMst where et_editformid=:formid ' +
        'and et_layoutid=:layoutid')
    Left = 16
    Top = 433
    ParamData = <
      item
        DataType = ftInteger
        Name = 'formid'
        ParamType = ptInput
        Value = nil
      end
      item
        DataType = ftInteger
        Name = 'layoutid'
        ParamType = ptInput
        Value = nil
      end>
    object qryDynMstET_EditFormID: TIntegerField
      FieldName = 'ET_EditFormID'
      Required = True
    end
    object qryDynMstET_LayoutID: TIntegerField
      FieldName = 'ET_LayoutID'
      Required = True
    end
    object qryDynMstET_LayoutName: TWideStringField
      FieldName = 'ET_LayoutName'
      Size = 30
    end
    object qryDynMstET_FormCaption: TWideStringField
      FieldName = 'ET_FormCaption'
      Required = True
      Size = 30
    end
    object qryDynMstET_FormType: TIntegerField
      FieldName = 'ET_FormType'
      Required = True
    end
    object qryDynMstET_Menu_Auto_ID: TIntegerField
      FieldName = 'ET_Menu_Auto_ID'
    end
    object qryDynMstET_Table_Name: TStringField
      FieldName = 'ET_Table_Name'
      Size = 200
    end
    object qryDynMstET_DtlTableName: TStringField
      FieldName = 'ET_DtlTableName'
      Size = 50
    end
    object qryDynMstET_Parent_EditForm_ID: TIntegerField
      FieldName = 'ET_Parent_EditForm_ID'
    end
    object qryDynMstET_KeyFields: TStringField
      FieldName = 'ET_KeyFields'
      Size = 200
    end
    object qryDynMstET_CodeField: TStringField
      FieldName = 'ET_CodeField'
      Size = 50
    end
    object qryDynMstET_LookupField: TStringField
      FieldName = 'ET_LookupField'
      Size = 50
    end
    object qryDynMstCREATE_TIME: TDateTimeField
      FieldName = 'CREATE_TIME'
    end
    object qryDynMstCREATE_BY: TIntegerField
      FieldName = 'CREATE_BY'
    end
    object qryDynMstET_ISInitOpenData: TBooleanField
      FieldName = 'ET_ISInitOpenData'
    end
    object qryDynMstET_TableWhere: TStringField
      FieldName = 'ET_TableWhere'
      Size = 2000
    end
  end
  object qryDynDtl: TUniQuery
    Connection = MainDM.UniConn
    SQL.Strings = (
      
        'select * from ts_DynamicEditFormDtl where dt_editformid=:formid ' +
        'and dt_layoutid=:layoutid '
      '  order by dt_fieldtype,dt_order')
    Left = 80
    Top = 433
    ParamData = <
      item
        DataType = ftInteger
        Name = 'formid'
        ParamType = ptInput
        Value = nil
      end
      item
        DataType = ftInteger
        Name = 'layoutid'
        ParamType = ptInput
        Value = nil
      end>
    object qryDynDtlDT_EditFormID: TIntegerField
      FieldName = 'DT_EditFormID'
      Required = True
    end
    object qryDynDtlDT_LayoutID: TIntegerField
      FieldName = 'DT_LayoutID'
      Required = True
    end
    object qryDynDtlDT_Index: TIntegerField
      FieldName = 'DT_Index'
      Required = True
    end
    object qryDynDtlDT_Order: TIntegerField
      FieldName = 'DT_Order'
    end
    object qryDynDtlDT_FieldType: TIntegerField
      FieldName = 'DT_FieldType'
      Required = True
    end
    object qryDynDtlDT_FieldName: TStringField
      FieldName = 'DT_FieldName'
      Required = True
      Size = 50
    end
    object qryDynDtlDT_FieldCaption: TWideStringField
      FieldName = 'DT_FieldCaption'
    end
    object qryDynDtlDT_DataType: TStringField
      FieldName = 'DT_DataType'
      Required = True
      Size = 2
    end
    object qryDynDtlDT_ISShow: TBooleanField
      FieldName = 'DT_ISShow'
    end
    object qryDynDtlDT_ISNotNULL: TBooleanField
      FieldName = 'DT_ISNotNULL'
    end
    object qryDynDtlDT_ISFullCol: TBooleanField
      FieldName = 'DT_ISFullCol'
    end
    object qryDynDtlDT_MustShow: TBooleanField
      FieldName = 'DT_MustShow'
    end
    object qryDynDtlDT_MustNotNull: TBooleanField
      FieldName = 'DT_MustNotNull'
    end
    object qryDynDtlDT_LookupID: TStringField
      FieldName = 'DT_LookupID'
      Size = 30
    end
    object qryDynDtlDT_InputType: TSmallintField
      FieldName = 'DT_InputType'
    end
    object qryDynDtlCREATETIME: TDateTimeField
      FieldName = 'CREATETIME'
    end
    object qryDynDtlDT_ISReadOnly: TBooleanField
      FieldName = 'DT_ISReadOnly'
    end
    object qryDynDtlDT_LookupParams: TStringField
      FieldName = 'DT_LookupParams'
      Size = 50
    end
    object qryDynDtlDT_ColWidth: TIntegerField
      FieldName = 'DT_ColWidth'
    end
    object qryDynDtlDT_ISLookupShow: TBooleanField
      FieldName = 'DT_ISLookupShow'
    end
    object qryDynDtlDT_ISFindCondition: TBooleanField
      FieldName = 'DT_ISFindCondition'
    end
    object qryDynDtlDT_Top: TIntegerField
      FieldName = 'DT_Top'
    end
    object qryDynDtlDT_Left: TIntegerField
      FieldName = 'DT_Left'
    end
    object qryDynDtlDT_Shadow: TBooleanField
      FieldName = 'DT_Shadow'
    end
    object qryDynDtlDT_Fixed: TBooleanField
      FieldName = 'DT_Fixed'
    end
    object qryDynDtlDT_FooterType: TSmallintField
      FieldName = 'DT_FooterType'
    end
    object qryDynDtlDT_Print: TBooleanField
      FieldName = 'DT_Print'
    end
    object qryDynDtlDT_FindShow: TBooleanField
      FieldName = 'DT_FindShow'
    end
    object qryDynDtlDT_OnlyFind: TBooleanField
      FieldName = 'DT_OnlyFind'
    end
    object qryDynDtlDT_GroupBy: TBooleanField
      FieldName = 'DT_GroupBy'
    end
    object qryDynDtlDT_CalcExpressShow: TStringField
      FieldName = 'DT_CalcExpressShow'
      Size = 200
    end
    object qryDynDtlDT_CalcExpress: TStringField
      FieldName = 'DT_CalcExpress'
      Size = 200
    end
    object qryDynDtlDT_DefValue: TStringField
      FieldName = 'DT_DefValue'
      Size = 200
    end
    object qryDynDtlDT_FixCtrl: TSmallintField
      FieldName = 'DT_FixCtrl'
    end
    object qryDynDtlDT_FindColumnShow: TBooleanField
      FieldName = 'DT_FindColumnShow'
    end
    object qryDynDtlDT_BillReportShow: TBooleanField
      FieldName = 'DT_BillReportShow'
    end
    object qryDynDtlDT_BillReportOrder: TIntegerField
      FieldName = 'DT_BillReportOrder'
    end
  end
end
